﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace ProMvc.Controllers
{
    public class MyRouteController : Controller
    {
        //
        // GET: /Route/

        public ActionResult Index()
        {
            return View();
        }

        public ActionResult CustonerVariable(string id)
        {
            ViewBag.CustomerVariable = RouteData.Values["id"];
            ViewBag.Controller = "MyRoute";
            ViewBag.Action = "CustonerVariable";
            return View();
        }
    }
}
